# 获取的是 jar 命令
def javaProjectHandle(value):
    # 按换行符 \n 分割成列表
    valueList = value.split('\n')
    resultList = []
    # 便利列表，获取jar 包名
    for v in valueList:
        if v.endswith('.jar'):
            javaProjectName = v[v.rfind('/') + 1:v.rfind('.jar')]
            if '-Xms' in v:
                memmoryInfo = v[v.find('-Xms'): v.find('-Xss')]
            else:
                memmoryInfo = '默认堆内存'
            resultList.append(javaProjectName + ' | ' + memmoryInfo + ' | ' + "健康")
    resultList.sort()
    # 将集合转换成字符串返回
    return '\n'.join(resultList)
